/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.util.ArrayList;
/*    */ import java.util.Collection;
/*    */ import java.util.List;
/*    */ import java.util.Locale;
/*    */ import net.minecraft.client.Minecraft;
/*    */ import net.minecraft.entity.player.EntityPlayer;
/*    */ import net.minecraft.inventory.ClickType;
/*    */ import net.minecraft.inventory.Container;
/*    */ import net.minecraft.inventory.Slot;
/*    */ import net.minecraft.item.ItemStack;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class nl
/*    */ {
/*    */   @eos/moe/dragoncore/t(v = {"删除物品", "Container_Delete"})
/*    */   public static void v(String a, boolean bool) {
/* 24 */     dh.d.v(a, bool);
/*    */   }
/*    */   
/*    */   @eos/moe/dragoncore/t(v = {"取物品", "取槽位物品", "Container_Get_Item"})
/*    */   public static ItemStack v(vh a, String str) {
/* 29 */     fj<ItemStack, String> fj = dh.d.v(str, (a != null && a.isHud()));
/* 30 */     if (fj.z() == null) {
/* 31 */       return ItemStack.field_190927_a;
/*    */     }
/* 33 */     return fj.z();
/*    */   }
/*    */   
/*    */   @eos/moe/dragoncore/t(v = {"取所有物品", "Container_Get_All_Items"})
/*    */   public static nf z(vh a) {
/* 38 */     if (a == null)
/* 39 */       return new nf(); 
/* 40 */     Collection<kd> collection = new ArrayList();
/* 41 */     List list = ((Container)a.e).field_75151_b;
/* 42 */     for (Slot slot : list) {
/* 43 */       collection.add(new kd(slot.func_75211_c()));
/*    */     }
/* 45 */     return new nf((Collection)collection);
/*    */   }
/*    */   
/*    */   @eos/moe/dragoncore/t(v = {"取容器所有物品", "Container_Get_Container_Items"})
/*    */   public static nf v(vh a) {
/* 50 */     if (a == null) {
/* 51 */       return new nf();
/*    */     }
/*    */ 
/*    */     
/* 55 */     Collection<kd> collection = new ArrayList();
/* 56 */     List<Slot> list = ((Container)a.e).field_75151_b;
/* 57 */     int i = (a.e instanceof net.minecraft.inventory.ContainerPlayer) ? 0 : 36;
/* 58 */     for (int j = 0; j < list.size() - i; j++) {
/* 59 */       collection.add(new kd(((Slot)list.get(j)).func_75211_c()));
/*    */     }
/* 61 */     return new nf((Collection)collection);
/*    */   }
/*    */   
/*    */   @eos/moe/dragoncore/t(v = {"丢弃手中物品", "Container_Drop"})
/*    */   public static void v() {
/* 66 */     Minecraft a = Minecraft.func_71410_x();
/* 67 */     a.field_71442_b.func_187098_a(a.field_71439_g.field_71070_bA.field_75152_c, -999, 0, ClickType.PICKUP, (EntityPlayer)a.field_71439_g);
/*    */   }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   @eos/moe/dragoncore/t(v = {"模拟点击槽位", "Container_Click"})
/*    */   public static void v(String a, int i, String str1, double d) {
/* 78 */     if (a.isEmpty())
/* 79 */       return;  Minecraft minecraft = Minecraft.func_71410_x();
/* 80 */     str1 = str1.isEmpty() ? "PICKUP" : str1;
/*    */ 
/*    */     
/* 83 */     Slot slot = dh.d.v(a, minecraft.field_71439_g.field_71070_bA);
/* 84 */     if (slot == null)
/*    */       return;  try {
/* 86 */       minecraft.field_71442_b.func_187098_a(minecraft.field_71439_g.field_71070_bA.field_75152_c, slot.field_75222_d, i, 
/*    */ 
/*    */ 
/*    */           
/* 90 */           ClickType.valueOf(str1.toUpperCase(Locale.ROOT)), (EntityPlayer)minecraft.field_71439_g);
/*    */ 
/*    */       
/* 93 */       if (d != 0.0D)
/* 94 */         minecraft.field_71439_g.field_71071_by.func_70437_b(ItemStack.field_190927_a); 
/* 95 */     } catch (Exception exception) {
/* 96 */       exception.printStackTrace();
/*    */     } 
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\nl.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */